// 


import request from '@/utils/request'

export function listconsume_Join(query) {
  return request({
    url: '/system/consume_Join/list',
    method: 'get',
    params: query
  })
}

export function selectList(query) {
  return request({
    url: '/system/consume_Join/listSelect',

    method: 'get',
    params: query
  })
}
export function delconsume_Join(compFeeIds) {
  return request({
    url: '/system/consume_Join/' + compFeeIds,
    method: 'delete'
  })
}
export function consume_JoinAdd(data) {
  return request({
    url: '/system/consume_Join',
    method: 'post',
    data: data
  })
}
export function updategconsume_Join(data) {
  return request({
    url: '/system/consume_Join',
    method: 'put',
    data: data
  })
}
export function consume_JoinInfo(query) {
  return request({
    url: '/system/consume_Join/' + query,
    method: 'get',
  })
}
export function effectconsume_Join(id, effect) {
  console.log('11')
  return request({
    url: '/system/consume_Join/effect/' + id + '/' + effect,
    method: 'put',
  })
}

// 上传签到表 type 1首次 2末次 3总结报告
export function signFile(query) {
  return request({
    url: '/system/consume_Join/signFile',
    method: 'get',
    params: query
  })
}
// 验收
export function consume_join_check(data) {
  return request({
    url: '/system/consume_join_check',
    method: 'post',
    data: data
  })
}
// 验收列表
export function consume_join_check_list(query) {
  return request({
    url: '/system/consume_join_check/list',
    method: 'get',
    params: query
  })
}
// 验收详情
export function consume_join_check_Info(consumeGoodsJoinCheckId) {
  return request({
    url: '/system/consume_join_check/' + consumeGoodsJoinCheckId,
    method: 'get',
  })
}
//验收编辑
export function consume_join_checkEdit(data) {
  return request({
    url: '/system/consume_join_check',
    method: 'put',
    data: data
  })
}
// 记录编号
export function getPrintCode(params) {
  return request({
    url: '/system/consume_Join/getPrintCode?type=' + params.type,
    method: 'get',
  })
}
//修改编号
export function updateCode(data) {
  return request({
    url: '/system/consume_Join/updateCode',
    method: 'put',
    data: data
  })
}
